import axios from 'axios'

/*轮播图*/
export function getSlider(type) {
  const url=`api/wxapp/homepage/getSlide?type=${type}`
  return axios.get(url)
}

/*文章列表*/
export function getArticleList(cid,offset,pageCount) {
  const url =`/api/portal/article/getList?cid=${cid}&offset=${offset}&pageCount=${pageCount}`
  return axios.get(url)
}
/*文章分类*/
export function getArticleNav() {
  const url = `/api/portal/Categorie`
  return axios.get(url)
}
/*文章详情*/
export function getArticle(id) {
  const url = `/api/portal/article/getDetail?id=${id}`
  return axios.get(url)
}
